<?php


namespace app\api\model;


use think\Model;

class SetAccount extends Model
{
    protected $table = 'jxc_set_account';

    public function flows()
    {
        return $this->hasMany(SetAccountFlow::class, 'set_account_id');
    }
    
    public function sales($where)
    {
        return $this->hasMany(Sale::class, 'set_account')->where($where);
    }
}